package com.qbw.core.model;

/**
 * @author qinbaowei
 * @date 2017/11/1
 * @email qbaowei@qq.com
 */

public class ViewType {
    private int viewType;
    private Object o;

    public ViewType(int viewType, Object o) {
        this.viewType = viewType;
        this.o = o;
    }

    public ViewType(int viewType) {
        this.viewType = viewType;
    }

    public int getViewType() {
        return viewType;
    }

    public Object getO() {
        return o;
    }

    public String getOString() {
        if (o instanceof String) {
            return (String) o;
        }
        return "";
    }
}
